import request from '@/utils/request'

// /system/appointment/scheduling/list 查询预约排班列表
export function listScheduling(query) {
  return request({
    url: '/system/appointment/scheduling/list',
    method: 'get',
    params: query
  })
}

// /system/appointment/scheduling/{schedulingId} 获取预约排班详细信息
export function getScheduling(schedulingId) {
  return request({
    url: '/system/appointment/scheduling/' + schedulingId,
    method: 'get'
  })
}
///system/appointment/scheduling/all/list 查询预约排班所有数据列表
export function listAllScheduling(query) {
    return request({
        url: '/system/appointment/scheduling/all/list',
        method: 'get',
        params: query
      })
  }
// /system/appointment/scheduling 新增预约排班
export function addScheduling(data) {
  return request({
    url: '/system/appointment/scheduling',
    method: 'post',
    data: data
  })
}
// /system/appointment/scheduling/quote/lastWeek 引用上周
export function quoteScheduling(data) {
    return request({
      url: '/system/appointment/scheduling/quote/lastWeek',
      method: 'post',
      data: data
    })
  }
///system/appointment/scheduling   修改预约排班
export function updateScheduling(data) {
  return request({
    url: '/system/appointment/scheduling',
    method: 'put',
    data: data
  })
}

// /system/appointment/scheduling/{schedulingIds} 删除预约排班
export function delScheduling(schedulingIds) {
  return request({
    url: '/system/appointment/scheduling/' + schedulingIds,
    method: 'delete'
  })
}

///system/appointment/scheduling/enable/scheduling/{schedulingIds } 启用排班
export function enableScheduling(schedulingIds ) {
  return request({
    url: '/system/appointment/scheduling/enable/scheduling/'+schedulingIds,
    method: 'get'
  })
}
///system/appointment/scheduling/batch  新增预约排班(批量)
export function addSchedulingBatch(data) {
  return request({
    url: '/system/appointment/scheduling/batch',
    method: 'post',
    data: data
  })
}
//system/appointment/scheduling/get/scheduling/date/list 获取排班日期集

export function getSchedulingDate(data) {
  return request({
    url: '/system/appointment/scheduling/get/scheduling/date/list',
    method: 'post',
    data: data
  })
}
//system/appointment/scheduling/enable/scheduling/batch  启用排班(批量)
export function getSchedulingenableBatch(data) {
  return request({
    url: '/system/appointment/scheduling/enable/scheduling/batch',
    method: 'post',
    data: data
  })
}
///system/appointment/scheduling/get/scheduling/batch/schedulingIds) 批量获取排班信息(用于启用操作
export function getenableSchedulingBatch(schedulingIds ) {
  return request({
    url: '/system/appointment/scheduling/get/scheduling/batch/'+schedulingIds,
    method: 'get'
  })
}
///system/appointment/get/appointment/tj 预约信息 查询
export function getTJappointment(query) {
  return request({
      url: '/system/appointment/get/appointment/tj',
      method: 'get',
      params: query
    })
}

//  /system/appointment/get/appointment/detail 预约信息 详情
export function listAllappointmentDetail(query) {
  return request({
      url: '/system/appointment/get/appointment/detail',
      method: 'get',
      params: query
    })
}

// /system/appointment/scheduling/update/schedulingNum 修改排班数量
export function appointmentschedulingNum(data) {
  return request({
    url: '/system/appointment/scheduling/update/schedulingNum',
    method: 'post',
    data: data
  })
}